package com.jsyl.lwbk.business.mapper.education;

import com.jsyl.lwbk.business.domain.education.ChildReport;
import com.jsyl.lwbk.business.dto.ChildMonthPlanVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChildMonthPlanMapper {
    int insert(ChildReport record);

    int updateById(ChildReport record);

    ChildReport getChildMonthPlan(ChildReport record);

    List<ChildMonthPlanVO> getById(Long id);


    List<ChildReport> page(ChildReport record);

    Integer pageCount(ChildReport record);

    void updateRead(Long id);

    /**
     * 获取学生最新的未读测评报告
     * @param childId
     * @return
     */
    ChildReport getChildEvaluateReport(Long childId);

    /**
     * 按日期获取学生课程报告
     * @param childId
     * @param dayDate
     * @return
     */
    List<ChildReport> getScheduleReport(@Param("childIds") List<String> childId, @Param("dayDates") List<String> dayDate);

}